package com.xy.quartz.service.impl;

import org.springframework.stereotype.Service;
import com.xy.quartz.service.DemoService;

import java.text.SimpleDateFormat;
import java.util.Date;

@Service
public class DemoServiceImpl implements DemoService {

    public void jobMethod() {
        SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        System.out.println("jobMethod:"+dateFormat.format(new Date()));
    }
}
